<!DOCTYPE html>
<html>	
<head> 
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
</head>
<body>

<p>点击这个按钮，来调用带参数的函数。</p>
<button type = "button" onclick = "f('ddd','ttt')">按钮</button>
<script>
function f (firstName ,Secondname){
    alert( "name : " +firstName + "·" + Secondname);
}

</script>

</body>
</html>